package com.aaa.service.impl;

import com.aaa.dao.ProvinceDao;
import com.aaa.entity.Province;
import com.aaa.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvinceServiceImpl implements ProvinceService {

    @Autowired
    ProvinceDao pd;
    @Override
    public List<Province> findProvince() {
        return pd.findProvince();
    }

    @Override
    public Province findProvinceById(int pid) {
        return pd.findProvinceById(pid);
    }

    @Override
    public int updateProvince(Province province) {
        return pd.updateProvince(province);
    }
}
